home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d3 / famtree.arc / INSTALL.BAT < prev    next >
DOS Batch File  |  1991-04-28  |  2KB  |  73 lines

  1. ECHO OFF
  2. IF %1?==FD? GOTO BEGIN
  3. IF %2?==? GOTO ERROR
  4. IF %1?==HD? GOTO BEGIN
  5. :ERROR
  6. ECHO To install on a hard disk, enter:  INSTALL HD x yyyy
  7. ECHO    where  "x"=hard disk drive designation (usually "C")
  8. ECHO    and "yyyy"=ZERO  or  blanks   (see README document)
  9. ECHO To install on a floppy diskette, enter:  INSTALL FD yyyy
  10. ECHO    where "yyyy"=ZERO  or blanks  (see README document)
  11. ECHO (Note: all entries must be in CAPS)
  12. ECHO :
  13. GOTO ENDIT
  14. :ERROR2
  15. ECHO The Family History System distribution diskette must be in the "A" drive
  16. ECHO :
  17. GOTO ENDIT
  18. :BEGIN
  19. IF NOT EXIST A:INSTALL.BAT GOTO ERROR2
  20. CLS
  21. ECHO Beginning %1 installation of Family History System programs
  22. ECHO :
  23. :HDCHECK
  24. IF %1==HD GOTO HDINSTAL
  25. :FDINSTAL
  26. ECHO If your system has 2 disk drives you should place the diskette which
  27. ECHO is to contain the Family programs in the "B" drive at this time.
  28. ECHO :
  29. ECHO If your system has a single diskette drive, wait until prompted to place
  30. ECHO the new program diskette in this drive (which will then be designated the
  31. ECHO "B" drive).  During this installation procedure you will be faced with a
  32. ECHO lot of "disk shuffling".  Just remember that the distribution diskette
  33. ECHO is in the "A" drive and the new program diskette is in the "B" drive.
  34. ECHO :
  35. PAUSE
  36. ECHO>B:AUTOEXEC.BAT FHS
  37. ECHO>B:CONFIG.SYS BUFFERS=25
  38. IF %2?==ZERO? GOTO ZERO
  39. ECHO>B:FHS.BAT FAMINIT
  40. GOTO COPYPGMS
  41. :ZERO
  42. ECHO>B:FHS.BAT ZERO
  43. ECHO>>B:FHS.BAT FAMINIT
  44. COPY A:ZERO.COM B:
  45. :COPYPGMS
  46. COPY A:*.EXE B:
  47. ECHO :
  48. ECHO The installation process is now complete.  You may try out the extended
  49. ECHO system by placing the new program diskette in the "A" drive and typing:
  50. ECHO FHS   in response to the DOS prompt.
  51. ECHO :
  52. GOTO ENDIT
  53. :HDINSTAL
  54. ECHO During this installation of the Family History System programs on your
  55. ECHO drive %2:, a new sub-directory (\FAMILY) will be created on the %2 drive
  56. ECHO and the Family History programs will be copied to it.
  57. ECHO :
  58. PAUSE
  59. MD %2:FAMILY
  60. IF %3?==ZERO? COPY A:ZERO.COM %2:\FAMILY
  61. COPY A:*.EXE %2:\FAMILY
  62. ECHO>%2:FHS.BAT CD \FAMILY
  63. IF %3?==ZERO? ECHO>>%2:FHS.BAT ZERO
  64. ECHO>>%2:FHS.BAT FAMINIT
  65. ECHO>>%2:FHS.BAT CD \
  66. %2:
  67. ECHO :
  68. ECHO You may now try the Extended Family History System from your drive %2 by
  69. ECHO entering:   FHS
  70. ECHO :
  71. :ENDIT
  72. CD \
  73.